package xin.ssm.jxc.model;

import java.math.BigDecimal;

public class Goods2 {
    private Integer goodsid;

    private String goodsname;

    private String goodsunit;

    private Integer goodsnumber;

    private BigDecimal goodsprice;

    private Integer goodsalarm;

    private Categorys category;
    
    private Integer categoryid;

    public Integer getGoodsid() {
        return goodsid;
    }

    public void setGoodsid(Integer goodsid) {
        this.goodsid = goodsid;
    }

    public String getGoodsname() {
        return goodsname;
    }

    public void setGoodsname(String goodsname) {
        this.goodsname = goodsname == null ? null : goodsname.trim();
    }

    public String getGoodsunit() {
        return goodsunit;
    }

    public void setGoodsunit(String goodsunit) {
        this.goodsunit = goodsunit == null ? null : goodsunit.trim();
    }

    public Integer getGoodsnumber() {
        return goodsnumber;
    }

    public void setGoodsnumber(Integer goodsnumber) {
        this.goodsnumber = goodsnumber;
    }

    public BigDecimal getGoodsprice() {
        return goodsprice;
    }

    public void setGoodsprice(BigDecimal goodsprice) {
        this.goodsprice = goodsprice;
    }

    public Integer getGoodsalarm() {
        return goodsalarm;
    }

    public void setGoodsalarm(Integer goodsalarm) {
        this.goodsalarm = goodsalarm;
    }

	/**
	 * @return the category
	 */
	public Categorys getCategory() {
		return category;
	}
	//JSON 获取Obejct下的值
//	public String getCategoryname() {
//		return category.getCategoryname();
//	}
	/**
	 * @param category the category to set
	 */
	public void setCategory(Categorys category) {
		this.category = category;
	}

	/**
	 * @return the categoryid
	 */
	public Integer getCategoryid() {
		return categoryid;
	}

	/**
	 * @param categoryid the categoryid to set
	 */
	public void setCategoryid(Integer categoryid) {
		this.categoryid = categoryid;
	}

}